package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Borrow;
import com.example.springboot.entity.revert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface BorrowMapper {
    List<Borrow> list();

    List<Borrow> listByCondition(BaseRequest baseRequest);

    List<revert> listRevertByCondition(BaseRequest baseRequest);

    void save (Borrow obj);

    void saveRevert (revert obj);

    Borrow getById (Integer id);

    void updateById(Borrow obj);

    void deleteById (Integer id);


    void deleteRevertById (Integer id);

    void updateStatus (String status,Integer id);
}
